import Layout from '@/layout'
export default {
  path: '/system',
  component: Layout, // 一级路由组件
  redirect: '/system/user',
  meta: { title: '系统管理', icon: 'el-icon-s-tools' },
  children: [
    {
      path: 'user', // ,不为空时是 一级path+二级path,二级不用加 /
      name: 'User',
      component: () => import('@/views/system/user/index'),
      meta: {
        title: '用户管理',
        icon: 'el-icon-s-custom'
      }
    },
    {
      path: 'role', // 不为空时是 一级path+二级path,二级不用加 /
      name: 'Role',
      component: () => import('@/views/system/role/index'),
      meta: {
        title: '角色管理',
        icon: 'el-icon-s-check'
      }
    },
    {
      path: 'menu', // 不为空时是 一级path+二级path,二级不用加 /
      name: 'Menu',
      component: () => import('@/views/system/menu/index'),
      meta: {
        title: '菜单管理',
        icon: 'el-icon-menu'
      }
    }
  ]
}
